package org.example.seata.bs.product.service;

import org.example.seata.bs.api.dto.order.OrderInfoDto;
import org.example.seata.bs.api.service.product.ProductService;
import org.example.seata.common.core.util.ApiResp;

import java.util.List;

/**
 * @author hzq
 * @date 2021/12/1 10:06
 */
public interface ProductEnhanceService extends ProductService {

    /**
     * 减去产品虚拟库存
     *
     * @param orderInfoDtoList 详情
     * @return ApiResp<Boolean>
     */
    ApiResp<Boolean> minusProductVirtualInventory(List<OrderInfoDto> orderInfoDtoList);

    /**
     * 加上产品虚拟库存
     *
     * @param orderInfoDtoList 详情
     * @return ApiResp<Boolean>
     */
    ApiResp<Boolean> plusProductVirtualInventory(List<OrderInfoDto> orderInfoDtoList);
}
